package com.hospital.workstation.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.hospital.common.annotation.ExcelDictFormat;
import com.hospital.common.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 临床诊疗指南视图对象 hospital_clinic_handbook
 *
 * @author whb
 * @date 2023-03-23
 */
@Data
@ExcelIgnoreUnannotated
public class ClinicHandbookVo {

    private static final long serialVersionUID = 1L;

    /**
     * 指南ID
     */
    @ExcelProperty(value = "指南ID")
    private Long id;

    /**
     * 临床诊疗指南数据
     */
    @ExcelProperty(value = "临床诊疗指南数据")
    private String handbookContent;

    /**
     * 类别（1内科）
     */
    @ExcelProperty(value = "类别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=内科")
    private String handbookCategory;

    /**
     * 类别名称
     */
    private String handbookCategoryStr;

    /**
     * 附件ID
     */
    @ExcelProperty(value = "附件ID")
    private Long ossId;

    /**
     * 附件地址
     */
    @ExcelProperty(value = "附件地址")
    private String ossUrl;

    /**
     * 创建人
     */
    private String createBy;

    /**
     * 创建时间
     */
    private Date createTime;
}
